package com.gbx.sportsnews.utils;

import android.databinding.BindingAdapter;
import android.util.Log;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

/**
 * Created by Administrator on 2016/12/16.
 */

public class Binding {
    @BindingAdapter("loadUrl")
    public static void loadImage(ImageView view,String url){
        Log.e("1620",url);
        Picasso.with(view.getContext())
                .load("http://lifeixphoto.qiniudn.com/"+url+"?imageView2/1/w/864/h/555/format/jpg")
                .into(view);
    }
}
